fs:fat: fix set file name function
authorPiotr Wilczek <[email protected]>
Fri, 11 Oct 2013 13:43:33 +0000 (15:43 +0200)
committerTom Rini <[email protected]>
Fri, 8 Nov 2013 20:25:13 +0000 (15:25 -0500)
commit73dc8328c3d842c9093d358dad61d4fd8b3fa2c5
treee125170a29034fdc0225dc684d670d69bd9feca5
parent01adbce2aa496ff0704bc2b7c3e4280c0e9a8657
fs:fat: fix set file name function

Curently memcpy copies string without null terminating char because
function strlen returns only number of characters excluding
null terminating character. Replace memcpy with strcpy.

Signed-off-by: Piotr Wilczek <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
CC: Tom Rini <[email protected]>
fs/fat/fat_write.c